package com.cyy.activitylifecycleyanalysisdemo.activity;

import android.content.Intent;
import android.view.View;

import com.cyy.activitylifecycleyanalysisdemo.utils.LogUtils;
import com.cyy.activitylifecycleyanalysisdemo.R;

public class MainActivity extends AbstractBaseActivity {


    @Override
    protected int getContentLayoutResId() {
        return R.layout.activity_default_layout;
    }

    @Override
    protected String getActivityDecs() {
        return getClass().getSimpleName();
    }

    @Override
    protected void onDefaultButtonClick(View v) {
        Intent intent = new Intent(this, SecondActivity.class);
        startActivity(intent);
    }

    @Override
    protected String getLogTag() {
        return LogUtils.getClassTag(getClass());
    }

    @Override
    protected String getDefaultBtnText() {
        return "启动SecondActivity";
    }
}
